---
title: Declutter your JavaScript & TypeScript projects
description: Project linter to find unused dependencies, exports and files
template: splash
hero:
  title: Knip
  tagline: Declutter your JavaScript & TypeScript projects
  image:
    file: ../../assets/logo.svg
  actions:
    - text: Let's Get Started
      link: ./overview/getting-started
      icon: right-arrow
      variant: primary
    - text: View on GitHub
      link: https://github.com/webpro-nl/knip
      icon: external
      variant: minimal
---

import { Card, CardGrid } from '@astrojs/starlight/components';
import { YouTube } from '@astro-community/astro-embed-youtube';
import Posts from '../../components/Posts.astro';
import Sponsors from '../../components/Sponsors.astro';
import Projects from '../../components/Projects.astro';
import Contributors from '../../components/Contributors.astro';

:::section{.badges}

[![NPM Version][2]][1] [![NPM Downloads][3]][1] [![GitHub Repo   stars][5]][4]

:::

:::div{.sponsor}

[Sponsor Me][6] / [Hire Me][7]

:::

:a[Sponsored by:]{.sponsors-intro href="/sponsors"}

<Sponsors showAll={false} />

<CardGrid>
  <Card title="Why use Knip?" icon="approve-check">
    Knip finds and fixes unused dependencies, exports and files. Use it for
    enhanced code and dependency management.
  </Card>

  <Card title="How does it work?" icon="setting">
    Advanced analysis starting from fine-grained entry points based on the
    actual frameworks and tooling in (mono)repos for accurate and actionable
    results.
  </Card>

  <Card title="Battle-tested" icon="approve-check">
    Thousands of projects are already using Knip!
  </Card>

  <Card title="Plugins" icon="open-book">
    Knip comes with [100+ plugins][8] for tools and frameworks like Astro,
    Cypress, ESLint, Jest, GitHub Actions, Next.js, Nx, Remix, Storybook,
    Svelte, Vite, Vitest, Webpack and many, many more.
  </Card>

  <Card title="Playground" icon="rocket">
    Try Knip on the [playground][9].
  </Card>

  <Card title="Troubleshooting" icon="warning">
    Need help? [Start troubleshooting][10].
  </Card>
</CardGrid>

## Trusted by the world's best software teams

:::section{.projects}

<Projects />

:::

## Introduction video

[James Shopland][11] has a great introduction and overview of Knip (thanks
James!):

<YouTube id="uhEkgWt-pUM" />

## Created by awesome contributors

Special thanks to the wonderful people who have contributed to this project:

<Contributors />

## Articles about Knip

A curated selection of articles about Knip, most recent first:

- Tom McWright: [How to keep package.json under control][12] (2025-09-11)
- Mohammed Farmaan: [Declutter Your JavaScript and TypeScript Projects][13]
  (2025-08-13)
- dip Engineer Blog: [Knipで安心してデッドコードを撲滅する][14]
  (2025-04-04/Japanese 🇯🇵)
- Tom MacWright: [Knip: good software for cleaning up TypeScript tech debt][15]
  (2024-10-25)
- Neng Apichet: [มาทำความสะอาด Project โค้ดของเราด้วย Knip กัน][16]
  (2024-10-22/Thai 🇹🇭)
- Anthony Pena: [Knip: l'ultime outil pour faire le ménage dans vos
  projets!][17] (2024-10-08/French 🇫🇷)
- Taro: [TypeScript/JavaScriptの不要なコードを削除するツール「Knip」の紹介][18]
  (2024-07-25/Japanese 🇯🇵)
- Kevin Bailey: [Delete Code with Knip][19] (2025-10-31)
- Maddy Miller: [Using Knip to find dead code in a high-traffic git repo][20]
  (2023-09-17)
- Josh Goldberg: [Speeding Up Centered Part 4: Unused Code Bloat][21]
  (2023-08-21)
- Smashing Magazine: [Knip: An Automated Tool For Finding Unused Files, Exports,
  And Dependencies][22] (2023-08-14)
- Effective TypeScript: [Recommendation Update: ✂️ Use knip to detect dead code
  and types][23] (2023-07-29)

## Don't just take our word for it

<Posts />

## Read More

- [Unused dependencies][24]
- [Unused exports][25]

[1]: https://www.npmjs.com/package/knip
[2]: https://img.shields.io/npm/v/knip?color=f56e0f
[3]: https://img.shields.io/npm/dm/knip?color=f56e0f
[4]: https://github.com/webpro-nl/knip
[5]: https://img.shields.io/github/stars/webpro-nl/knip?style=flat&color=f56e0f
[6]: ./sponsors
[7]: https://webpro.nl/hire-me
[8]: ./reference/plugins.md
[9]: ./playground
[10]: ./guides/troubleshooting.md
[11]: https://www.jamesshopland.com
[12]: https://blog.val.town/gardening-dependencies
[13]: https://farmaan.dev/writing/using-knip
[14]: https://developer.dip-net.co.jp/entry/2025/04/04/Knipで安心してデッドコードを撲滅する
[15]: https://macwright.com/2024/10/25/good-software-knip
[16]: https://engineering.thinknet.co.th/มาทำความสะอาด-project-โค้ดของเราด้วย-knip-กัน-20dbd65f6b58
[17]: https://k49.fr.nf/knip-l-ultime-outil-pour-faire-le-menage-dans-vos-projets/
[18]: https://tech.basemachina.jp/entry/introduction-knip
[19]: https://kevinabailey.com/delete-code-with-knip
[20]: https://madelinemiller.dev/blog/knip-dead-code/
[21]: https://www.joshuakgoldberg.com/blog/speeding-up-centered-part-4-unused-code-bloat/
[22]: https://www.smashingmagazine.com/2023/08/knip-automated-tool-find-unused-files-exports-dependencies/
[23]: https://effectivetypescript.com/2023/07/29/knip/
[24]: ./typescript/unused-dependencies.md
[25]: ./typescript/unused-exports.md
